package org.hackystat.projectbrowser.page.settrigger;

import org.apache.wicket.PageParameters;
import org.hackystat.projectbrowser.page.ProjectBrowserBasePage;

/**
 * The webpage that edits a trigger's name.
 * 
 * @author Edward Kim
 * 
 */
public class EditTriggerName extends ProjectBrowserBasePage {

  /** Support serialization. */
  private static final long serialVersionUID = 1L;

  /**
   * Create the HomePage.
   * 
   * @param param The page parameters that are passed to the form as Strings.
   */
  public EditTriggerName(PageParameters param) {
    String id = param.getStringValue("tapName").toString();
    String projectName = param.getStringValue("projectName").toString();
    String oldTriggerName = param.getStringValue("oldTriggerName").toString();
    add(new EditTriggerNameTable("editTriggerName-table", id, projectName, oldTriggerName));
  }
}
